package com.situ.boot.entity;

import javax.persistence.*;
import java.sql.Date;
import java.util.Objects;

@Entity
@Table(name = "results", schema = "brcc", catalog = "")
public class ResultsEntity {
    private int id;
    private Date resultsTime;
    private Integer addUser;
    private Integer totalUser;
    private Double addResults;
    private Double totalResults;
    private Double addBonus;
    private Double totalBonus;
    private Double bob;
    private Double totalBob;
    private Integer totalUser2;

    @Id
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "results_time")
    public Date getResultsTime() {
        return resultsTime;
    }

    public void setResultsTime(Date resultsTime) {
        this.resultsTime = resultsTime;
    }

    @Basic
    @Column(name = "add_user")
    public Integer getAddUser() {
        return addUser;
    }

    public void setAddUser(Integer addUser) {
        this.addUser = addUser;
    }

    @Basic
    @Column(name = "total_user")
    public Integer getTotalUser() {
        return totalUser;
    }

    public void setTotalUser(Integer totalUser) {
        this.totalUser = totalUser;
    }

    @Basic
    @Column(name = "add_results")
    public Double getAddResults() {
        return addResults;
    }

    public void setAddResults(Double addResults) {
        this.addResults = addResults;
    }

    @Basic
    @Column(name = "total_results")
    public Double getTotalResults() {
        return totalResults;
    }

    public void setTotalResults(Double totalResults) {
        this.totalResults = totalResults;
    }

    @Basic
    @Column(name = "add_bonus")
    public Double getAddBonus() {
        return addBonus;
    }

    public void setAddBonus(Double addBonus) {
        this.addBonus = addBonus;
    }

    @Basic
    @Column(name = "total_bonus")
    public Double getTotalBonus() {
        return totalBonus;
    }

    public void setTotalBonus(Double totalBonus) {
        this.totalBonus = totalBonus;
    }

    @Basic
    @Column(name = "bob")
    public Double getBob() {
        return bob;
    }

    public void setBob(Double bob) {
        this.bob = bob;
    }

    @Basic
    @Column(name = "total_bob")
    public Double getTotalBob() {
        return totalBob;
    }

    public void setTotalBob(Double totalBob) {
        this.totalBob = totalBob;
    }

    @Basic
    @Column(name = "total_user2")
    public Integer getTotalUser2() {
        return totalUser2;
    }

    public void setTotalUser2(Integer totalUser2) {
        this.totalUser2 = totalUser2;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ResultsEntity that = (ResultsEntity) o;
        return id == that.id &&
                Objects.equals(resultsTime, that.resultsTime) &&
                Objects.equals(addUser, that.addUser) &&
                Objects.equals(totalUser, that.totalUser) &&
                Objects.equals(addResults, that.addResults) &&
                Objects.equals(totalResults, that.totalResults) &&
                Objects.equals(addBonus, that.addBonus) &&
                Objects.equals(totalBonus, that.totalBonus) &&
                Objects.equals(bob, that.bob) &&
                Objects.equals(totalBob, that.totalBob) &&
                Objects.equals(totalUser2, that.totalUser2);
    }

    @Override
    public int hashCode() {
        return Objects.hash(id, resultsTime, addUser, totalUser, addResults, totalResults, addBonus, totalBonus, bob, totalBob, totalUser2);
    }
}
